package views.activity.volunteer;

import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import javax.swing.JScrollPane;
import javax.swing.JList;

public class GeneralPanel extends JPanel {
	private JScrollPane scrollPane;
	
	public JTextField txtTitle;
	public JComboBox<String> cmbType;
	public JList<String> lstOrganizations;
	public DefaultListModel<String> lstModelOrganizations;
	public JButton btnBack;
	public JButton btnCancel;
	public JButton btnNext;
	
	public GeneralPanel() {
		this.setSize(520, 389);
		this.setLayout(null);
		
		scrollPane = new JScrollPane();
		scrollPane.setBounds(111, 130, 299, 200);
		add(scrollPane);
		
		JLabel lblActivityTitle = new JLabel("Activity Title");
		lblActivityTitle.setFont(new Font("Arial", Font.PLAIN, 12));
		lblActivityTitle.setBounds(111, 10, 299, 20);
		this.add(lblActivityTitle);
		
		JLabel lblActivityType = new JLabel("Activity Type");
		lblActivityType.setFont(new Font("Arial", Font.PLAIN, 12));
		lblActivityType.setBounds(111, 60, 299, 20);
		this.add(lblActivityType);
		
		JLabel lblSponsoringOrganization = new JLabel("Sponsoring Organization");
		lblSponsoringOrganization.setFont(new Font("Arial", Font.PLAIN, 12));
		lblSponsoringOrganization.setBounds(111, 110, 299, 20);
		this.add(lblSponsoringOrganization);
		
		lstModelOrganizations = new DefaultListModel<String>();
		
		txtTitle = new JTextField();
		txtTitle.setBounds(111, 30, 299, 20);
		this.add(txtTitle);
		
		cmbType = new JComboBox<String>();
		cmbType.setBounds(111, 80, 299, 20);
		this.add(cmbType);
		
		lstOrganizations = new JList<String>( lstModelOrganizations );
		lstOrganizations.setFont(new Font("Arial", Font.PLAIN, 12));
		scrollPane.setViewportView(lstOrganizations);
		
		btnBack = new JButton("Back");
		btnBack.setFont(new Font("Arial", Font.PLAIN, 12));
		btnBack.setBounds(70, 353, 80, 25);
		this.add(btnBack);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setFont(new Font("Arial", Font.PLAIN, 12));
		btnCancel.setBounds(220, 353, 80, 25);
		this.add(btnCancel);
		
		btnNext = new JButton("Next");
		btnNext.setFont(new Font("Arial", Font.PLAIN, 12));
		btnNext.setBounds(370, 353, 80, 25);
		this.add(btnNext);
	}
}
